using System;

namespace UtilsExtensionsAndHelpers.Helpers
{
    public interface IImageHelper
    {
        /// <summary>
        /// Get or set the action that provides feedback. 
        /// A message (string) will be passed in.
        /// IE. Log(message), Console.WriteLine(message)
        /// </summary>
        Action<string> FeedbackProvider { get; set; }

        /// <summary>
        /// Gets a url from an image url and converts it to byte[]
        /// </summary>
        /// <param name="url">The url of the image.</param>
        /// <returns>byte[]  A collection of byte representing the image</returns>
        byte[] ImageUrlToBytes(string url);

        /// <summary>
        /// Gets a url from an image url and converts it to byte[]
        /// </summary>
        /// <param name="url">The url of the image.</param>
        /// <returns>byte[]  A collection of byte representing the image</returns>
        byte[] LocalImageUrlToBytes(string path);
    }
}